Primitive Polynomial (field Theory)
   HOME

TheInfoList



OR:

In finite field theory, a branch of
mathematics Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, a primitive polynomial is the minimal polynomial of a primitive element of the
finite field In mathematics, a finite field or Galois field (so-named in honor of Évariste Galois) is a field (mathematics), field that contains a finite number of Element (mathematics), elements. As with any field, a finite field is a Set (mathematics), s ...
. This means that a polynomial of degree with coefficients in is a ''primitive polynomial'' if it is monic and has a root in such that \ is the entire field . This implies that is a primitive ()-root of unity in .


Properties

* Because all minimal polynomials are irreducible, all primitive polynomials are also irreducible. * A primitive polynomial must have a non-zero constant term, for otherwise it will be divisible by ''x''. Over
GF(2) (also denoted \mathbb F_2, or \mathbb Z/2\mathbb Z) is the finite field with two elements. is the Field (mathematics), field with the smallest possible number of elements, and is unique if the additive identity and the multiplicative identity ...
, is a primitive polynomial and all other primitive polynomials have an odd number of terms, since any polynomial mod 2 with an even number of terms is divisible by (it has 1 as a root). * An
irreducible polynomial In mathematics, an irreducible polynomial is, roughly speaking, a polynomial that cannot be factored into the product of two non-constant polynomials. The property of irreducibility depends on the nature of the coefficients that are accepted f ...
''F''(''x'') of degree ''m'' over GF(''p''), where ''p'' is prime, is a primitive polynomial if the smallest positive integer ''n'' such that ''F''(''x'') divides is . * A primitive polynomial of degree has different roots in , which all have
order Order, ORDER or Orders may refer to: * A socio-political or established or existing order, e.g. World order, Ancien Regime, Pax Britannica * Categorization, the process in which ideas and objects are recognized, differentiated, and understood ...
, meaning that any of them generates the
multiplicative group In mathematics and group theory, the term multiplicative group refers to one of the following concepts: *the group under multiplication of the invertible elements of a field, ring, or other structure for which one of its operations is referre ...
of the field. * Over GF(''p'') there are exactly primitive elements and primitive polynomials, each of degree , where is
Euler's totient function In number theory, Euler's totient function counts the positive integers up to a given integer that are relatively prime to . It is written using the Greek letter phi as \varphi(n) or \phi(n), and may also be called Euler's phi function. In ot ...
. * The algebraic conjugates of a primitive element in are , , , …, and so the primitive polynomial has explicit form . That the coefficients of a polynomial of this form, for any in , not necessarily primitive, lie in follows from the property that the polynomial is invariant under application of the
Frobenius automorphism In commutative algebra and field theory, the Frobenius endomorphism (after Ferdinand Georg Frobenius) is a special endomorphism of commutative rings with prime characteristic , an important class that includes finite fields. The endomorphism m ...
to its coefficients (using ) and from the fact that the fixed field of the Frobenius automorphism is .


Examples

Over the polynomial is irreducible but not primitive because it divides : its roots generate a cyclic group of order 4, while the multiplicative group of is a cyclic group of order 8. The polynomial , on the other hand, is primitive. Denote one of its roots by . Then, because the natural numbers less than and relatively prime to are 1, 3, 5, and 7, the four primitive roots in are , , , and . The primitive roots and are algebraically conjugate. Indeed . The remaining primitive roots and are also algebraically conjugate and produce the second primitive polynomial: . For degree 3, has primitive elements. As each primitive polynomial of degree 3 has three roots, all necessarily primitive, there are primitive polynomials of degree 3. One primitive polynomial is . Denoting one of its roots by , the algebraically conjugate elements are and . The other primitive polynomials are associated with algebraically conjugate sets built on other primitive elements with relatively prime to 26: :\beginx^3+2x+1 & = (x-\gamma)(x-\gamma^3)(x-\gamma^9)\\ x^3+2x^2+x+1 &= (x-\gamma^5)(x-\gamma^)(x-\gamma^) = (x-\gamma^5)(x-\gamma^)(x-\gamma^)\\ x^3+x^2+2x+1 &= (x-\gamma^7)(x-\gamma^)(x-\gamma^) = (x-\gamma^7)(x-\gamma^)(x-\gamma^)\\ x^3+2x^2+1 &= (x-\gamma^)(x-\gamma^)(x-\gamma^) = (x-\gamma^)(x-\gamma^)(x-\gamma^). \end


Applications


Field element representation

Primitive polynomials can be used to represent the elements of a
finite field In mathematics, a finite field or Galois field (so-named in honor of Évariste Galois) is a field (mathematics), field that contains a finite number of Element (mathematics), elements. As with any field, a finite field is a Set (mathematics), s ...
. If ''α'' in GF(''p''''m'') is a root of a primitive polynomial ''F''(''x''), then the nonzero elements of GF(''p''''m'') are represented as successive powers of ''α'': : \mathrm(p^m) = \ . This allows an economical representation in a
computer A computer is a machine that can be Computer programming, programmed to automatically Execution (computing), carry out sequences of arithmetic or logical operations (''computation''). Modern digital electronic computers can perform generic set ...
of the nonzero elements of the finite field, by representing an element by the corresponding exponent of \alpha. This representation makes multiplication easy, as it corresponds to addition of exponents
modulo In computing and mathematics, the modulo operation returns the remainder or signed remainder of a division, after one number is divided by another, the latter being called the '' modulus'' of the operation. Given two positive numbers and , mo ...
p^m-1.


Pseudo-random bit generation

Primitive polynomials over GF(2), the field with two elements, can be used for pseudorandom bit generation. In fact, every
linear-feedback shift register In computing, a linear-feedback shift register (LFSR) is a shift register whose input bit is a Linear#Boolean functions, linear function of its previous state. The most commonly used linear function of single bits is exclusive-or (XOR). Thus, ...
with maximum cycle length (which is , where ''n'' is the length of the linear-feedback shift register) may be built from a primitive polynomial. In general, for a primitive polynomial of degree ''m'' over GF(2), this process will generate pseudo-random bits before repeating the same sequence.


CRC codes

The
cyclic redundancy check A cyclic redundancy check (CRC) is an error-detecting code commonly used in digital networks and storage devices to detect accidental changes to digital data. Blocks of data entering these systems get a short ''check value'' attached, based on ...
(CRC) is an error-detection code that operates by interpreting the message bitstring as the coefficients of a polynomial over GF(2) and dividing it by a fixed generator polynomial also over GF(2); see
Mathematics of CRC The cyclic redundancy check (CRC) is a check of the remainder after division in the ring of polynomials over GF(2) (the finite field of integers modulo 2). That is, the set of polynomials where each coefficient is either zero or one, and arithm ...
. Primitive polynomials, or multiples of them, are sometimes a good choice for generator polynomials because they can reliably detect two bit errors that occur far apart in the message bitstring, up to a distance of for a degree ''n'' primitive polynomial.


Primitive trinomials

A useful class of primitive polynomials is the primitive trinomials, those having only three nonzero terms: . Their simplicity makes for particularly small and fast
linear-feedback shift register In computing, a linear-feedback shift register (LFSR) is a shift register whose input bit is a Linear#Boolean functions, linear function of its previous state. The most commonly used linear function of single bits is exclusive-or (XOR). Thus, ...
s. A number of results give techniques for locating and testing primitiveness of trinomials. For polynomials over GF(2), where is a
Mersenne prime In mathematics, a Mersenne prime is a prime number that is one less than a power of two. That is, it is a prime number of the form for some integer . They are named after Marin Mersenne, a French Minim friar, who studied them in the early 1 ...
, a polynomial of degree ''r'' is primitive if and only if it is irreducible. (Given an irreducible polynomial, it is ''not'' primitive only if the period of ''x'' is a non-trivial factor of . Primes have no non-trivial factors.) Although the
Mersenne Twister The Mersenne Twister is a general-purpose pseudorandom number generator (PRNG) developed in 1997 by and . Its name derives from the choice of a Mersenne prime as its period length. The Mersenne Twister was created specifically to address most of ...
pseudo-random number generator does not use a trinomial, it does take advantage of this. Richard Brent has been tabulating primitive trinomials of this form, such as . This can be used to create a pseudo-random number generator of the huge period ≈ .


References


External links

* {{MathWorld , urlname=PrimitivePolynomial , title=Primitive Polynomial Field (mathematics) Polynomials